| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var assert = require('chai').assert, |
||
| 100 | describe('toJSON', function(){ |
||
| 101 | |||
| 102 | it('arrays', function(){ |
||
| 103 | assert.deepEqual( |
||
| 104 | utils.toJSON({ |
||
| 105 | facts: [ |
||
| 106 | GedcomX.Fact({ |
||
| 107 | date: { |
||
| 108 | formal: '+2001' |
||
| 109 | } |
||
| 110 | }) |
||
| 111 | ] |
||
| 112 | }), |
||
| 113 | { |
||
| 114 | facts: [ |
||
| 115 | { |
||
| 116 | date: { |
||
| 117 | formal: '+2001' |
||
| 118 | } |
||
| 119 | } |
||
| 120 | ] |
||
| 121 | } |
||
| 122 | ); |
||
| 123 | }); |
||
| 124 | |||
| 125 | }); |
||
| 126 | |||
| 127 | }); |